//
//  SEnvironment.swift
//  Source_iOS
//
//  Created by Toj on 5/12/22.
//

import Foundation

/**
 * 环境变量名
 */
public enum SENVIRNames: String {
    case home = "HOME" // home路径
    case user = "USER" // mobile
    case root = "ROOT"
    case path = "PATH"
    /**
     * DYLD_INSERT_LIBRARIES, 在非越狱的机器上应该是空, 越狱的机器上基本都会有
     * Library/MobileSubstrate/MobileSubstrate.dylib.
     */
    case libraries = "DYLD_INSERT_LIBRARIES"
    
    var getenv: String {
        return rawValue.st_getenv
    }
}
